package com.springboot.demo.enums;

/**
 * demo枚举
 *
 * @author supu
 * @date 2019-04-17 17:34
 **/
public enum DemoEnum {
    TEST(1, "test"),
    DEMO(2, "demo");

    private Integer key;
    private String value;

    DemoEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
